package laspon.vvvlike.school.dto.resquse;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @ClassName:AdminAccountDto
 * @Author: xqcw9
 * @Date: Created on 2020/9/14 09:53
 * @Version: 1.0
 */
public class AdminAccountDto implements Serializable {
    private static final long serialVersionUID = 3756983648370104064L;

    @ApiModelProperty(name = "id", example = "001", value = "flag为:删除或更新时必传")
    private long id;

    @ApiModelProperty(name = "flag", example = "0", value = "flag 0-删除 1-保存 2-更新")
    @NotBlank(message = "flag 字段必传")
    private int flag;

    @ApiModelProperty(name = "name", example = "001", value = "name")
    private String name;

    @ApiModelProperty(name = "password", example = "001", value = "password")
    private String password;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
